import {request} from "umi"


// 获取知识小册列表
export function getKnowledgeList(page: number = 1) {
    let params = {
        page,
        pageSize: 12,
        status: "publish"
    }
    return request('/api/Knowledge', {
        params
    })
}
// 知识小册详情接口
export function getKnowLedgeId(id:string){
    return request(`/api/knowledge/${id}`);
}
// 知识小册详情接口
export function getKnowLedgeKid(id:string){
    return request(`/api/knowledge/kid/${id}`);
}
